﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CRMSimple.LogServices.DataProducter;

namespace CRMSimple.LogServices
{
    public static class LogServiceContextRootExtensions
    {
        public static LogServiceContextRoot UseRMQProducter(this LogServiceContextRoot context)
        {
            context.SetProducter(new RMQDataProducter());
            return context;
        }
        public static LogServiceContextRoot UseRMQConsumer(this LogServiceContextRoot context)
        {
            context.SetConsumer(new RMQConsumer());
            return context;
        }
        public static LogServiceContextRoot UseTextFileDataCache(this LogServiceContextRoot context)
        {
            context.SetCache(new TextFileDataCache());
            return context;
        }
    }
}
